//
//  FYJScrollViewNestingSolution.h
//  CMSUIKit
//
//  Created by Michael on 2022/10/25.
//

#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>

NS_ASSUME_NONNULL_BEGIN

@protocol FYJScrollViewNestingSolutionProtocol <NSObject>

- (BOOL)gestureRecognizer:(UIGestureRecognizer *)gestureRecognizer shouldRecognizeSimultaneouslyWithGestureRecognizer:(UIGestureRecognizer *)otherGestureRecognizer;

@end

@interface FYJScrollViewNestingSolution : NSObject

@property (nonatomic, assign) CGFloat maxContentOffsetYOfMainScrollView;

- (instancetype)initWithMainScrollView:(UIScrollView<FYJScrollViewNestingSolutionProtocol> *)mainScrollView;

- (void)addContentScrollView:(UIScrollView *)contentScrollView;

- (void)scrollToTopOfMainScrollView;

@end

NS_ASSUME_NONNULL_END
